class AwardModel {
  String? icon;
  String? text;
  String? url;
  String? html;

  String? get htmlUrl {
    if (html != null) {
      return html;
    }
    return url;
  }

  AwardModel({this.icon, this.text, this.url, this.html});

  factory AwardModel.fromJson(Map<String, dynamic> json) => AwardModel(
        icon: json['icon'] as String?,
        text: json['text'] as String?,
        url: json['url'] as String?,
        html: json['html'] as String?,
      );

  Map<String, dynamic> toJson() => {
        'icon': icon,
        'text': text,
        'url': url,
        'html': html,
      };
}
